<script>
import Update from '@/assets/mixins/update'
export default {
  mixins: [Update],
  onLaunch(param) {
    uni.hideTabBar()

    // 开发环境
    this.initDevConsole()

    // 生产环境
    // this.initProdConsole()
  },
  methods: {
    initProdConsole() {
      console.param = function () {
        console.log('请求参数 : ', ...arguments)
      }

      console.res = function () {
        console.log('返回结果 : ', ...arguments)
      }

      console.err = function () {
        console.log('错误返回 : ', ...arguments)
      }
    },
    initDevConsole() {
      console.param = console.log
      console.res = console.log
      console.err = console.log
    }
  }
}
</script>

<style lang="scss" rel="stylesheet/scss">
/* thorui */
@import '~@/assets/styles/thorui-extend.css';

/* 扩展的一些 css */
@import '~@/assets/styles/extend.scss';

/* 业务 css */
@import '~@/assets/styles/index.scss';

/*  tui 业务代码 & 覆盖 tui 部分组件代码 */
@import '~@/assets/styles/tui-business.scss';
</style>
